#include "PizzaStore.h"

PizzaStore::PizzaStore(PizzaFactory *pizzaFactory)
{
    this->factory = pizzaFactory;
}

Pizza *PizzaStore::orderPizza(const string &type)
{
    Pizza *pizza;
    pizza = factory->createPizza(type);

    pizza->prepare();
//    pizza->cut();
//    pizza->box();

    return pizza;
}
